var ProxyBannerModel = function(sequelize, DataTypes) {
    return sequelize.define('proxy_banner', {
        id: {
            type: DataTypes.INTEGER.UNSIGNED,
            primaryKey: true,
            autoIncrement: true
        },
        type: {
            type: DataTypes.STRING(64),
            allowNull: false,
            comment: '类型'
        },
        message: {
            type: DataTypes.STRING(10240),
            allowNull: false,
            comment: '内容'
            },
        address: {
            type: DataTypes.STRING(1024),
            allowNull: false,
            comment: '链接地址'
        },
        switch:{
            type: DataTypes.INTEGER,
            allowNull: false,
            comment: "是否显示"
        }
    });
};

module.exports = ProxyBannerModel;